<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<span style="color: darkslategray; font-size: 30px">欢迎光临！</span>

<a th:href="@{/etc/toadd}">添加</a>
<table border="1">

    <tr>
        <th>id</th>
        <th>车牌号</th>
        <th>ETC卡号</th>
        <th>余额</th>
        <th>用户名</th>
        <th>使用年限</th>
    </tr>
    
    <tr>
    <tr th:each="etc:${etc}">
        <td th:text="${etc.rid}"></td>
        <td th:text="${etc.pai}"></td>
        <td th:text="${etc.etcid}"></td>
        <td th:text="${etc.yue}"></td>
        <td th:text="${etc.ename}"></td>
        <td th:text="${etc.nian}"></td>
    <td>
        <a href="#"  th:href="@{/etc/del(rid=${etc.rid})}">删除</a>
        
        <a href="#" th:href="@{/etc/fid(rid=${etc.rid})}">修改</a>
    </td>
    </tr>







</table>



</body>
</html>